import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Stream;

public class demo3 {
    public static void main(String[] args) {
        int[] list1=new int[]{1,2,3,4,5};
        String[] list2=new String[]{"a","b","c","d","e"};
        List<Integer> list3=new ArrayList<>();
        Collections.addAll(list3,1,2,3,4,5);
        Stream.of(list3).forEach(a->System.out.println(a));
    }
}
